package com.company.huisuo.biz.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.company.huisuo.base.BaseSingleAdapter
import com.company.huisuo.biz.bean.ProductBean
import com.company.huisuo.databinding.ItemMyOrderBinding


class MyOrderAdapter : BaseSingleAdapter<ProductBean, ItemMyOrderBinding>() {

    override val initViewBinding: (LayoutInflater, ViewGroup, Boolean) -> ItemMyOrderBinding
        get() = ItemMyOrderBinding::inflate

    override fun convert(
        holder: SingleViewHolder<ItemMyOrderBinding>, position: Int, item: ProductBean?
    ) {
        holder.binding.tvName.text = item?.name ?: ""
    }
}